From: Florian Müllner Date: Mon, 21 Feb 2011 18:06:07 +0000 (+0100) Subject: panel: Fix corner positions for multi-monitors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8913 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fb800f3d8bc5467e3b2042358b09f6aa6c7be12b;p=gnome-shell.git panel: Fix corner positions for multi-monitors The corner positions were only based on the panel's dimensions, its position needs to be taken into account as well. --- diff --git a/js/ui/panel.js b/js/ui/panel.js index f45af435f..1c23ae8d0 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -632,9 +632,11 @@ PanelCorner.prototype = { this.actor.set_size(cornerRadius, innerBorderWidth + outerBorderWidth + cornerRadius); if (this._side == St.Side.LEFT) - this.actor.set_position(0, Main.panel.actor.height - innerBorderWidth - outerBorderWidth); + this.actor.set_position(Main.panel.actor.x, + Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth); else - this.actor.set_position(Main.panel.actor.width - cornerRadius, Main.panel.actor.height - innerBorderWidth - outerBorderWidth); + this.actor.set_position(Main.panel.actor.x + Main.panel.actor.width - cornerRadius, + Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth); } };